import request from '@/utils/request'

// 查询聊天话术列表
export function listChatVerbalTrick(query) {
  return request({
    url: '/business/chatVerbalTrick/list',
    method: 'get',
    params: query
  })
}

// 查询聊天话术详细
export function getChatVerbalTrick(id) {
  return request({
    url: '/business/chatVerbalTrick/' + id,
    method: 'get'
  })
}

// 新增聊天话术
export function addChatVerbalTrick(data) {
  return request({
    url: '/business/chatVerbalTrick',
    method: 'post',
    data: data
  })
}

// 修改聊天话术
export function updateChatVerbalTrick(data) {
  return request({
    url: '/business/chatVerbalTrick',
    method: 'put',
    data: data
  })
}

// 删除聊天话术
export function delChatVerbalTrick(id) {
  return request({
    url: '/business/chatVerbalTrick/' + id,
    method: 'delete'
  })
}
